;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021, 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages guix)
  #:use-module (guix build-system guile)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages package-management))

(define-public guix-easy
  (let ((commit "8c3f052a7090612b72d697467f5b2847cf23ed09")
        (revision "0"))
    (package
      (name "guix-easy")
      (version (git-version "0.0.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.sr.ht/~whereiseveryone/guix-easy")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1jhnbvqvi79a0dv2hq8nv1bb4v8r7sri72cygbfg55zvj6pihmic"))))
      (build-system guile-build-system)
      (inputs (list guix))
      (native-inputs (list guile-3.0))
      (home-page "https://git.sr.ht/~whereiseveryone/guix-easy")
      (synopsis "Guix System Sugar")
      (description "@code{guix-easy} provides more syntax for Guix System services.")
      (license license:gpl3+))))

(define-public doug
  (let ((commit "3e2612eb32d4057ed1c6bb8db3615f79954d9f7e")
        (revision "2"))
    (package
      (name "doug")
      (version (git-version "0.0.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.sr.ht/~dhruvin/doug")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "081332f1gv6jyai7qrwxa3injd9868vqjls61s6c9gyb9c7hznrv"))))
      (inputs (list guix))
      (native-inputs (list guile-3.0))
      (build-system guile-build-system)
      (home-page "https://git.sr.ht/~dhruvin/doug")
      (synopsis "Utilities to serialize a Guix channel")
      (description "@code{doug} provides utilities to serialize a Guix channel.")
      (license license:gpl3+))))

